<template>
	<view class="agreement" v-html="html">
		
	</view>
</template>

<script>
	export default {
		data() {
			return {
				html:'',
				type:0
			};
		},
		onLoad(res) {
			this.type=res.type||0
			this.protocol()
		},
		methods:{
			protocol(){
				this.$httpRequest('/index/protocol',{
					type:this.type
				}).then(res=>{
					this.html=res.data
				})
			}
		}
	}
</script>

<style lang="less">
.agreement{
	
}
</style>
